package testJob;

public abstract class ServerJob extends CaclJob{
	private String IP;
	private int port;
	private String connectionString;
	
	public String getIP() {
		return this.IP;
	}
	
	public int getPort() {
		return this.port;
	}
	
	public String getConnectString() {
		return this.connectionString;
	}
	
	public ServerJob(String IP,int port, String connectionString) {
		super(true);
		this.IP = IP;
		this.port = port;
		this.connectionString = connectionString;
	}
	
	public abstract boolean connect();
	
	public boolean ping(int timeout) {
		System.out.printf("\nnow is ping the server, IP: %s port: %d\n",this.getIP(),this.getPort());;
		return true;
	}
	
	
}
